package com.service.atf.base.type;

/**
 * User: luotao
 * Date: 12-2-29
 * Time: 19:41:00
 */
public class ResultReplyRead {

    int code;

    long threadid = -3;

    byte[] input;

    byte[] output;

    public byte[] getOutput() {
        return output;
    }

    public void setOutput(byte[] output) {
        this.output = output;
    }

    public ResultReplyRead(int code) {
        this.code = code;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public void setThreadid(long threadid) {
        this.threadid = threadid;
    }

    public byte[] getInput() {
        return input;
    }

    public void setInput(byte[] input) {
        this.input = input;
    }

    public long getThreadId() {
        if (input.length < 8) return -1;
       /* long threadid = ByteUtil.readLong(input, 0);
        return threadid;*/
        return 0;
    }
}
